IApi.GetVariables 方法

取得使用者定义变数的清单。

命名空间IntervalZero.KINGSTAR.Base.Api

组合: IntervalZero.KINGSTAR.Base.Api (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

语法

C#VB
KsReturn<UserVariable[]> GetVariables(
       UserVariable Parent = null
)
Function GetVariables(
       Parent = null As UserVariable
) As KsReturn(Of UserVariable())

参数

Parent

型别:UserVariable

预设值:null

UserVariable 的父资料夹,预设会从根资料夹取得变数。

回传值

型别:KsReturn<UserVariable[]>

回传一个 KsError 代码及一个 UserVariable 值。

备注

此变数可用于 KINGSTAR 示波器 及即时记录档。

可用的 EtherCAT 状态

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

范例

C#
N/A

参见

IApi 介面

IntervalZero.KINGSTAR.Base.Api 命名空间